package com.hxc.basicdata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 农村企业信息对象 t_company_info
 * 
 * @author hxc
 * @date 2021-08-12
 */
public class TCompanyInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 村民名称 */
    @Excel(name = "村民名称")
    private Long villageId;
    /** 企业名称 */
    @Excel(name = "企业名称")
    private String companyName;
    /** 安全人员 */
    @Excel(name = "安全人员")
    private String safeMember;
    /** 安全人员电话 */
    @Excel(name = "安全人员电话")
    private String safePhone;
    /** 企业地址 */
    @Excel(name = "企业地址")
    private String address;
    /** 是否本地 */
    @Excel(name = "是否本地")
    private String isLocal;
    /** 村民姓名*/
    @TableField(exist = false)
    private String villageName;
    /** 村民姓名*/
    @TableField(exist = false)
    private String phone;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public void setVillageId(Long villageId) 
    {
        this.villageId = villageId;
    }
    public Long getVillageId() 
    {
        return villageId;
    }

    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }
    public String getCompanyName() 
    {
        return companyName;
    }

    public void setSafeMember(String safeMember) 
    {
        this.safeMember = safeMember;
    }
    public String getSafeMember() 
    {
        return safeMember;
    }

    public void setSafePhone(String safePhone) 
    {
        this.safePhone = safePhone;
    }
    public String getSafePhone() 
    {
        return safePhone;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }
    public String getAddress() 
    {
        return address;
    }

    public void setIsLocal(String isLocal)
    {
        this.isLocal = isLocal;
    }
    public String getIsLocal()
    {
        return isLocal;
    }

    public String getVillageName() {
        return villageName;
    }
    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("villageId", getVillageId())
            .append("companyName", getCompanyName())
            .append("safeMember", getSafeMember())
            .append("safePhone", getSafePhone())
            .append("address", getAddress())
            .append("isLocal", getIsLocal())
            .append("createTime", getCreateTime())
            .append("villageName", getVillageName())
            .append("phone", getPhone())
            .toString();
    }
}
